package com.king.designpatterns.结构型模式.代理模式;

/**
 * 游戏玩家
 *
 * @author king
 * @date 2021-06-08 10:55
 */
public class GamePlayer implements IGamePlayer{
    private String name;

    public GamePlayer(String name) {
        this.name = name;
    }

    @Override
    public void killBoss() {
        System.out.println(this.name + "在打怪！");
    }

    @Override
    public void upgrade() {
        System.out.println(this.name + "成功升了1级！");
    }
}
